
//也可以像下面这样，区分环境或者区分服务器等等
// let service = 'dev';
// let service = 'prod';
let api = '';
if (process.env.NODE_ENV == 'development') {
  /**dev开发**/
  api = '';
} else {
    /**prod部署**/
    var request_url  = window.location.href,
    index_doctor = request_url.indexOf("/admin");
    api = request_url.substr(0,index_doctor);
}

export {
  api
}

